//
//  HotCollectionViewCell.m
//  LNA
//
//  Created by dllo on 16/1/23.
//  Copyright © 2016年 www.lanou3g.com蓝鸥. All rights reserved.
//

#import "HotCollectionViewCell.h"

@implementation HotCollectionViewCell

- (void)dealloc
{
    [_imgView release];
    [_cnnameLabel release];
    [_ennameLabel release];
    
    [super dealloc];
    
    
}
// 初始化
- (instancetype) initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
        [self.contentView addSubview:_imgView];

        
        self.ennameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_ennameLabel];

        
        self.cnnameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_cnnameLabel];

    }
    return  self;
    
}
#pragma mark - 布局方法
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    _imgView.frame = CGRectMake(0, 0, layoutAttributes.size.width, layoutAttributes.size.height);
    _cnnameLabel.frame = CGRectMake(60, 20, 100, 30);
    _cnnameLabel.textColor = [UIColor whiteColor];
    _cnnameLabel.font = [UIFont systemFontOfSize:16];
    _ennameLabel.frame = CGRectMake(45, 40, 100, 20);
    _ennameLabel.font = [UIFont systemFontOfSize:14];
    _ennameLabel.textColor = [UIColor whiteColor];
}
@end
